package com.coordinator.test;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;

/**
 * Created by Administrator on 2016/12/2.
 */

public class AppBarLayoutActivity extends AppCompatActivity{
    private Toolbar mToolbar;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_app_bar_layout);

        mToolbar = (Toolbar)findViewById(R.id.testToolBar);
        mToolbar.setTitle("这是toolbar, 测试Appbaralyout, 你好厉害");

        setSupportActionBar(mToolbar);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }
}
